package com.hoas.quickstart.threads.chapter02.chapter02_2_11_01;

public class Run {

    public static void main(String[] args) {
        Service service = new Service();

        System.out.println("methodA方法无法终止，导致B方法一直无法执行");

        ThreadA a = new ThreadA( service );
        a.setName("A");
        a.start();

        ThreadB b = new ThreadB( service );
        b.setName("B");
        b.start();
    }

}
